// if (!( /pnpm/.test(process.env.npm_execpath || '') || /yarn/.test(process.env.npm_execpath || ''))) {  //pnpm和yarn都可以用
if (!/yarn/.test(process.env.npm_execpath || '')) {
  //只能用yarn
  console.warn(
    `\u001b[33mThis repository must using pnpm or yarn as the package manager ` +
      `for scripts to work properly.\u001b[39m`,
  )
  // console.log(`\n`);
  console.warn(
    `\u001b[1;34m老铁双击666\u001b[0m` + `\u001b[1;32m老铁点赞双击666\u001b[0m`,
  )
  process.exit(1)
}

if (/yarn/.test(process.env.npm_execpath || '')) {
  console.info('\u001b[1;36m你使用了yarn，我是不是应该要表扬你哦\u001b[0m')
}
